
#ifndef __TW_SPI_H__
#define __TW_SPI_H__

	#define	SPI_READ_SLOW		0
	#define SPI_READ_FAST 		1
	#define SPI_READ_DUAL	 	2
	#define SPI_READ_QUAD  		3
	#define SPI_READ_DUALIO		4
	#define SPI_READ_QUADIO		5

	#define SPI_READ_MODE		5 

	//--------------------
	// SPI FLASH Vendor
	//--------------------
	#define SFLASH_VENDOR_MX	0	//MX25L12845(C2 20 18) -- defaut
	#define SFLASH_VENDOR_EON	1	//EN25Q128 ID(1C 30 18)
	#define SFLASH_VENDOR_WB	2
	#define SFLASH_VENDOR_NUM	3	//STM(20 BA 18)

	#define SPI_PAGE	0x04

	#ifndef _TW88SPI_C_  
		#define SPI_EXT extern
	#else
		#define SPI_EXT 
	#endif
	
	SPI_EXT void TW8825_SPI_Init(void);
		
#endif

